using System;

namespace Be.Timvw.Framework.Domain.Generators
{
    public class DaysGenerator : IDiscreteValuesGenerator<DateTime>
    {
        #region IDiscreteValuesGenerator<DateTime> Members

        public DateTime GenerateNextValue(DateTime value)
        {
            return value.AddDays(1);
        }

        public DateTime MaxValue
        {
            get { return new DateTime(9999, 12, 31); }
        }

        public DateTime GeneratePreviousValue(DateTime value)
        {
            return value.AddDays(-1);
        }

        public DateTime MinValue
        {
            get { return new DateTime(0); }
        }

        #endregion
    }
}